/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cegg.graph.vertex;

import java.io.Serializable;

/**
 * Class represents a single vertex of a graph.
 *
 * @author Kamil Parzych
 */
public abstract class Vertex implements Serializable
{

    private int id;
    private String name;
    private String hint;
    private int positionX;
    private int positionY;

    public Vertex(int id, int positionX, int positionY)
    {
        this.positionX = positionX;
        this.positionY = positionY;
        this.id = id;
    }

    public Vertex(int id, String name, String hint, int positionX, int positionY)
    {
        this.id = id;
        this.name = name;
        this.hint = hint;
        this.positionX = positionX;
        this.positionY = positionY;
    }

    public String getHint()
    {
        return hint;
    }

    public int getId()
    {
        return id;
    }

    public String getName()
    {
        return name;
    }

    public int getPositionX()
    {
        return positionX;
    }

    public void setPositionX(int positionX)
    {
        this.positionX = positionX;
    }

    public int getPositionY()
    {
        return positionY;
    }

    public void setPositionY(int positionY)
    {
        this.positionY = positionY;
    }

    @Override
    public String toString()
    {
        return String.valueOf(this.id);
    }

}
